title: Regex to remove unwanted space between unique characters
body: <p>We are using an OCR to extract text from images. One of my most annoying problems from this OCR, is that I got sometime unwanted space, because the OCR found a word which was with a big tracking between characters. </p>
  
  <p>For example I got:</p>
  
  <pre><code>var text = "CHA BLIS 1 ER CRU CONTROLEEC B E A U R O Y C a Chablisienne"
  </code></pre>
  
  <p>I tried to do:</p>
  
  <pre><code>test.replace(/([A-Z])\s(?=[A-Z]\b)/, '$1')
  </code></pre>
  
  <p>But if I do so, I got as results:</p>
  
  <pre><code>CHA BLIS 1 ER CRU CONTROLEECBEAUROYC a Chablisienne
  </code></pre>
  
  <p>But expected results should be:</p>
  
  <pre><code>CHA BLIS 1 ER CRU CONTROLEEC BEAUROYCa Chablisienne
  </code></pre>
  
  <p>My absolute need is to regroup single character all together but, not to change other words.</p>
  
  <p>If:</p>
  
  <pre><code>var text = "CHA BLIS 1 ER CRU CONTROLEEC BEAU R O Y C a Chablisienne"
  </code></pre>
  
  <p>It should output:</p>
  
  <pre><code>CHA BLIS 1 ER CRU CONTROLEEC BEAU ROYCa Chablisienne
  </code></pre>
  
  <p>I didn't succeed yet after hours spent to found the right combination.</p>
  
  <p>ps : no difference of treatment has to be done between upper and lowercase.</p>