update to_string for OSX