These perennial favorites are also contained in Visual Studio C#. The statements are:
strName = strName.ToLower();
and
strName = strName.ToUpper();
Even though the word new does not appear in these statements, a new copy of the string is created each time and the old copy is left for eventual pickup by the garbage collector.