Replaced itoa with C++ STL to_string call