Remove trailing newline