Ignore punctuation at the end of string.