change \n -> \n in .to_string() docstring