Whilst I haven't looked at your code, I would suggest seriously considering whether it is worth writing your own string class, given that there are a million implementations of it already both in the standard C++ libraries and on the 'net. Strings are funny because they're succeptible to buffer overflow errors all over the place so if you do implement your own string class, this is something you will have to be very careful of. Alternatively, the std::string class from the STl has this all done already. Just a suggestion... -- Andrew.