Strings In Depth9 / 18
Up next

Replace

var s = "hello world";
Console.WriteLine(s.Replace(' ', '_'));
Console.WriteLine(s.Replace("world", "C#"));
What you're solving

swap chars or substrings