Remove trailing newline in output.