Make to_str() an implementation of the ToStr trait