title: using fpdf : str_pad doesn't work with spaces, it works with other characters
body: <p>I am adding a pad to my string, to fill with spaces, but it doesn't work
  the code is here</p>
  
  <pre><code>&lt;?php 
      $string1 = "Product 1 ";
      $newString  = str_pad($string1,100);
      echo $newString."test";
      echo "&lt;br&gt;";
      $string2 = "Product 2222 ";
      echo str_pad($string2,100," ")."test";
      echo "&lt;br&gt;";
   ?&gt;
  </code></pre>
  
  <p>the output is like this:</p>
  
  <pre><code>Product 1 test
  Product 2222 test
  </code></pre>