added punctuation trimming