remove extra line endings