add a string.replace_all function in C++