Remove trailing linefeed