Is it possible to replace a substring in a string without assigning a return value?
I have a string:
string test = "Hello [REPLACE] world"; <
You can't. You have to assign the value, as strings are immutable.
Built-in reference types (C# reference)