#include <iostream>
#include <string>

int main()
{
    std::string to_replace = "Hello!!";

    std::string punctuation = "!.,;:"; // Add more if needed
    size_t n = 0;
    while((n = to_replace.find_first_of(punctuation, n)) != std::string::npos)
        to_replace.erase(n, 1);
    std::cout << to_replace;
}