CPPPrimer

>writes what was read but with the punctuation removed.

This doesn't mean we should remove punctuation in the string, just shouldn't print it. The changes seem more complicated.