Only remove trailing newline