Support new to_string() function