delete newline at EOL