Update convert string to integer, and vice versa.cpp