Strip unnecessary newline.