From: Sjoerd Andringa Date: 2008-10-28T05:49:39+09:00 Subject: Re: String Comparison Problems mdrisser wrote: > I *SHOULD* be getting 24 matches, but for some reason I'm only getting > 2 and those are for measure_full['PROP 11']. I've even gone so far as > to copy and paste the values from the CSV file into the corresponding > places in the Hash, but it makes no difference, only > measure_full['PROP 11'] matches as expected. Looks like the whitespace characters don't match... maybe try replacing the whitespaces with a regular space like this: if value.eql? vals[0].gsub(/\s/, ' ') ... -- Posted via http://www.ruby-forum.com/.