title: How to remove spaces in a string using preg_replace
body: <p>I am to remove the spaces between the initials and keep the space between initial and any word.</p>
  
  <p>I would like to get this result.
  <strong>A.J.P. Jane B.V.</strong></p>
  
  <p>Instead I am getting this result
  <strong>A.J. P. Jane B. V.</strong></p>
  
  <pre><code>$string = "A.J. P. Jane B. V.";
  
  $string =  preg_replace('/\.\s\[A-z]{1}\./', '.', $string);
  
  echo $string;
  </code></pre>