title: Replace all occurrences of a string no matter how different it written
body: <p>I'm trying to see if this can be accomplished in plain and pure JavaScript.</p>
  
  <p>Lets say I have a string :</p>
  
  <pre><code>var ourstring = "Blah TEST ('1')  TEST('2') Blah BLah TEST ( '1' )  TEST( '2' )";
  </code></pre>
  
  <p>Please pay attention to how different <code>TEST('1')</code> is written inside the string.</p>
  
  <p>How can we detect all <code>TEST('')</code> inside the string no matter how different it written and replace them with something else based on the contain of the parenthesis.</p>
  
  <p>So <code>TEST ('1')</code> become <code>TEST('1.node')</code> instead. Is that possible if yes, please show me and explain step by step so i can learn from it.</p>
  
  <p>I have searched for such solution, but could not find anything. The problem I don't know how to do that. Please show me.</p>