Remove line endings and spaces