title: Remove enclosing brackets from a string in C#
body: <p>I need to remove enclosing brackets from a string in C# in <a href="https://en.wiktionary.org/wiki/code-behind" rel="nofollow noreferrer">code-behind</a>.</p>
  <p>For example, if I have a string as <code>[My [] Groups]</code>, I want to turn it into <code>My [] Groups</code>.</p>