Added functions stringToInt32 and int32ToString for testing.