Delete empty lines at (S/E)OF, squeeze empty lines, remove EOL white spaces