title: Remove Square Brackets in Text and its contents
body: <p>I have a string which contains normal English words as well as certain information displayed inside square brackets (<code>[</code> and <code>]</code>). </p>
  
  <p>I need to remove all the square brackets and its contents from the string. </p>
  
  <p>For example, the string below:</p>
  
  <blockquote>
    <p>String: "The dog[0] had a bone [1][2]"</p>
  </blockquote>
  
  <p>needs to be reformed to:</p>
  
  <blockquote>
    <p>String: "The dog had a bone"</p>
  </blockquote>