I\'m sorry for flaming std::string and std::wstring. They are quite limited and far from being thread safe. Performance wise, they are not that good too. I miss simple features
The C++ String Algorithms Library from Boost has pretty much all of the features you need.