Remove spaces at the end of the file