title: Remove square brackets from a string vector
body: <p>I have a character vector in which each element is enclosed in brackets. I want
  to remove the brackets and just have the string.</p>
  
  <p>So I tried:</p>
  
  <pre><code>n = c("[Dave]", "[Tony]", "[Sara]")
  
  paste("", n, "", sep="")
  </code></pre>
  
  <p>Unfortunately, this doesn't work for some reason. </p>
  
  <p>I've performed the same task before using this same code, and am not sure why it's not working this time.</p>
  
  <p>I want to go from <code>'[Dave]'</code> to <code>'Dave'</code>.</p>
  
  <p>What am I doing wrong?</p>