modify isLetter to check lower case letter