From: Stuart Clarke Date: 2009-05-21T20:34:11+09:00 Subject: Case sensitive strings Hi all, This is one of those annoying ones, but simple to solve I would imagine. I have a word list, where each entry is on a single line and in lowercase. I process this text file reading each word words.each |word| etc etc I then have a conditional statement to check if a value matches word eg if foo == word puts foo end This all works well, but I am stuck on how to deal with upper and lowercase. I want to check if foo is equal to word in lowercase and in uppercase. What is the best way to do this? Many thanks Stuart -- Posted via http://www.ruby-forum.com/.