title: why does replaceAll throw an exception
body: <p>i have a string where i want to get rid of brackets</p>
  
  <p>this is my string <code>"(name)"</code>
  and i want to get <code>"name"</code></p>
  
  <p>the same thing without the brackets</p>
  
  <p>i had <code>String s = "(name)";</code></p>
  
  <p>i wrote</p>
  
  <pre><code>s = s.replaceAll("(","");
  s = s.replaceAll(")","");
  </code></pre>
  
  <p>and i get an exception for that</p>
  
  <pre><code>Exception in thread "main" java.util.regex.PatternSyntaxException: Unclosed group near index 1
  (
  </code></pre>
  
  <p>how do i get rid of the brackets?</p>