C++ Custom Strin class