Added basic while loop to check if characters are upper or lower case