restore the __str__ method and add a to_string method