converting word to lower cases before query