Handling inclusion of non-alphabetic characters in text for correction