remove excess punctuation from template messages.