c++03 doesn't have the const version of std::string::erase... for some inane reason