refactored and rewrote the punctuation stripper