Adding function to tidy up whitespace around punctuation, and bind in text-mode.