There is a setting in your IDE to trim whitespace from line endings automatically. This will remove unnecessary white space.