the c++ string class implement by myself