Is there a shortform way to replace two characters inside a string in C#?
<p>Given:</p>

<pre><code>var x = "abc";
var x = "[abc]";
</code></pre>

<p>I coded the following to remove the [ and ] characters. </p>

<pre><code>x1 = x.Replace("[", "");
x2 = x1.Replace("]", "");
</code></pre>

<p>Is there some way that looks more clean to do this? Can I for example string one replace after the other? Note that the [ and ] if they appear will be found always at the start and the end of the string.</p>
