fixed problem with uppercase characters.