The following bit of C# code does not seem to do anything:
String str = \"{3}\"; str.Replace(\"{\", String.Empty); str.Replace(\"}\", String.Empty); Console
The String class is immutable; str.Replace will not alter str, it will return a new string with the result. Try this one instead:
str.Replace
str
String str = "{3}"; str = str.Replace("{", String.Empty); str = str.Replace("}", String.Empty); Console.WriteLine(str);