Replace newline at EOF