modify to_string and string stream something for print