Remove extra space at end of file