fix bugs at StringToInteger.cpp