try to write a class act lika a C++ string type