fixing line endings and white spaces