Remove a trailing newline