I'm a very beginner to C# and following some tutorials. I got this issue on manipulating strings recently.
string myName = "Jhon";
myName = myName.ToUpper();
myName = myName.Replace("Jhon", "doe").ToUpper();
Console.WriteLine($"Hello {myName}");
Console.WriteLine($"Hello {myName}");
and the answer was
Hello JHON
Hello JHON
Why the string Jhon did not get replaced with doe ? and why the first one worked and the last one didn't ?