Removing space at EOF