title: Adding blank spaces into a string in C#
body: <p>I have this code</p>
  
  <pre><code>String coNum = customerOrderLine.coNum.PadLeft(10 - customerOrderLine.coNum.Length);
  </code></pre>
  
  <p>I know that <code>customerOrderLine.coNum = "123456"</code>  So I should end up with coNum being having 4 empty spaces at the front of it but I end up with it being "123456".  How do I fix this?  I tried <code>PadRight</code> in case that was the mistake and it also failed to work.  I have to have the 4 empty spaces at the beginning to pass it into the API I am working on or it will fail.</p>