Added capitalLetter function to code