Remove unwanted newlines.