to_string converted to sstream