change uppercase words to be lowercase for matching