add codes about std::string
merge some old codes