added handling for entering capital letters as input