Fixed getLetter subroutine