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 Replace method returns a string with the replacement. What I think you're looking for is this:
Replace
str = str.Replace("{", string.Empty); str = str.Replace("}", string.Empty); Console.WriteLine(str);