Remove trailing new line at EOF