use `to_string` instead of `ostringstream`

STL "string" already contains a convenient helper function `to_string` for interger-to-string conversions.