This removes a lot of heap allocations/deallocations, and reduces code size. Most improvements come from using CString and StaticString instead of std::string and better using move semantics.
using namespace std