speed up cutNewLines by an order of magnitude