Collapse punctuation in formatOutputList.