WIP code to reduce memory fragmentation

std::string::reserve & reference string variable