implemented punctuation pattern method