Fixed some bugs related to comparing strings that were not both lower case.