remove new line at EOF