From: William James Date: 2006-12-28T17:20:15+09:00 Subject: Re: Strip is not stripping trailing whitespace Taylor Strait wrote: > > Note the use of String#chomp > > Thanks, Morton. That was the key. I just appended two .chomp methods > and it fixed it right up. It couldn't have. strip removes newlines, because they are whitespace. On the other hand, neither chomp nor strip removes "\240". >> "foo \n".strip => "foo" >> ("foo " + 0240.chr).chomp => "foo \240"