fix a bug with upper & lower case of words