Dont set cursor pos beyond end of text when replacing text
Report when no smartenable punctuation is found