corrected condition when testing given letter