mrp: helper, add to_string method.