if deleting lines, don't replace words
added shuffling and maintaining the position of punctuation
clean up punctuation handling