output stream changed to string