remove new line eof