Remove requirement for C++ by using stringstream instead of to_string