Strip unnecessary new line