title: C# Set length of string before assign to and add spaces in remaining place
body: <p>I need function or idea how to set length regardless of the length assigned to it and add spaces in remaining place, like this:</p>
  
  <pre><code>string s = "Example   ";
  string s = "Exam      ";
  </code></pre>
  
  <p>Both got 10 letters length.</p>