made changes to accept lower case letters