title: Remove leading and trailing brackets in a String
body: <p>In Java, I want to get rid of the leading and trailing brackets in a String.<br>
  Given input:</p>
  
  <pre><code>"[ hello, char[]={a,b,c} ... bye ]"
  </code></pre>
  
  <p>How can I produce the output of</p>
  
  <pre><code>" hello, char[]={a,b,c} ... bye "
  </code></pre>
  
  <p>only the leading <code>[</code> and trailing <code>]</code> is removed... How can I do that in Java? </p>