Fix punctuation, remove trailing spaces.