Replaces the prefix of a string.
A string with the prefix replaced.
If the string does not start with the prefix, the string itself is returned.
string s0 = MainUtil.ReplacePostfix("Hello world", "Hello", "Hi"); // "Hi you"
string s1 = MainUtil.ReplacePostfix("Hello world", "Hi", "Goodday"); // "Hello world"
MainUtil Class | Sitecore Namespace | ReplacePostfix