Added the ability to use both uppercase and lowercase letters for inputs