Fixed code for stripping puntuation and added newline character stripping.

The first version of the code didn't remove newline characters automatically and removed punctuation from within words."