C++ function to convert string to int and int to string