fromLetter function fixed