title: How to replace brackets in strings
body: <p>I have a list of strings that contains tokens.<br>
  Token is:  </p>
  
  <blockquote>
    <p>{ARG:token_name}.</p>
  </blockquote>
  
  <p>I also have hash map of tokens, where key is the token and value is the value I want to substitute the token with.  </p>
  
  <p>When I use "replaceAll" method  I get error:  </p>
  
  <blockquote>
    <p>java.util.regex.PatternSyntaxException: Illegal repetition</p>
  </blockquote>
  
  <p>My code is something like this:</p>
  
  <pre><code>myStr.replaceAll(valueFromHashMap , "X"); 
  </code></pre>
  
  <p>and valueFromHashMap contains { and }. </p>
  
  <p>I get this hashmap as a parameter. </p>