Made some minor changes the if statement to check if the character is uppercase