Strips redundant newlines.