#include <algorithm>
#include <string>
#include <iostream>
int main()
{
std::string s = "This,,,,string,,contains a,,,,lot,of,,commas,,,";
s.erase(std::remove(s.begin(), s.end(), ','), s.end());
std::cout << s;
}
CiAgICAjaW5jbHVkZSA8YWxnb3JpdGhtPgogICAgI2luY2x1ZGUgPHN0cmluZz4KICAgICNpbmNsdWRlIDxpb3N0cmVhbT4KICAgIAogICAgaW50IG1haW4oKQogICAgewogICAgICAgc3RkOjpzdHJpbmcgcyA9ICJUaGlzLCwsLHN0cmluZywsY29udGFpbnMgYSwsLCxsb3Qsb2YsLGNvbW1hcywsLCI7CiAgICAgICBzLmVyYXNlKHN0ZDo6cmVtb3ZlKHMuYmVnaW4oKSwgcy5lbmQoKSwgJywnKSwgcy5lbmQoKSk7CiAgICAgICBzdGQ6OmNvdXQgPDwgczsKICAgIH0KCg==