Remove extra newlines