Trimming extra line at EOF.