METHOD
String.Replace
Returns a string with matching occurrences replaced; does not mutate the source.
Formal Syntax & Structure
csharp syntaxcsharp
text.Replace(oldValue, newValue)Working Example
Example Snippetcsharp
string moved = "A-12".Replace("A-", "B-");