Remove unwanted newlines