delete the last empty line always