The following bit of C# code does not seem to do anything:
String str = \"{3}\"; str.Replace(\"{\", String.Empty); str.Replace(\"}\", String.Empty); Console
I believe that str.Replace returns a value which you must assign to your variable. So you will need to do something like:
String str = "{3}"; str = str.Replace("{", String.Empty); str = str.Replace("}", String.Empty); Console.WriteLine(str);