fix some compile level error. seems work fine
due to a bug (get const char* from function return), change all const char* to string