whitespace and lowercase issues fixed for looking up words