used stream to convert from int to string