Replaced sprintf with std::to_string for int to string conversion.
Replaced StringFromInt and StringFromBool with std::to_string.