A simple string implementation in C++