add some method to convert string to cocos2dx types