Speeded up sentence count and replacement of punctuation