How to replace special character in string

 I have the string with multiple repeated special characters which needs to be replaced with another character.

 

Eg: s'd'g' has to be replaced with s@d@g@.

 

Please suggest.

  Discussion posts and replies are publicly visible