Check punctuation at end of string