String Class Implemented in C++