remove the empty line at the end of file