title: Replace string char but keep the case type
body: <p>I use the following code that when user type some value in upper and lower case I mark the value as bold,this following code is working.</p>
  
  <pre><code>var typedVal = oAcF._sTypedChars.toLowerCase();
  element.innerHTML = element.innerHTML.replace(typedVal, "&lt;b&gt;" + typedVal + "&lt;/b&gt;");
  </code></pre>
  
  <p>here I got the value and put it to lower case since I want to handle cases when user type with upper case</p>
  
  <pre><code>var typedVal = oAcF._sTypedChars.toLowerCase();
  </code></pre>
  
  <p>here I take the value can be e.g aa and find it in the inner html and add to it bold.</p>
  
  <pre><code>element.innerHTML = element.innerHTML.replace(typedVal, "&lt;b&gt;" + typedVal + "&lt;/b&gt;")
  </code></pre>
  
  <p>the problem is that if I have in the innerHTML  e.g. AA it will not work since the value is in upper case,how can I overcome it?</p>
  
  <p>I cannot use the following since I want to keep the value with the original case so in this example upper case...</p>
  
  <pre><code>element.innerHTML = element.innerHTML.toLowerCase().replace(typedVal, "&lt;b&gt;" + typedVal + "&lt;/b&gt;")
  </code></pre>