Having trouble with replacing one char

I am having trouble with trying to replace one char in c++ string for another one I need to change all the e to s in this code can someone help thank you, I am sorry if I posted this wrong this is my first time doing something like this please someone answer my question thank you