title: Powershell - $var.ToString(x,y) issue
body: <p>for a user creation scrip in powershell i'm using textbox object to fill the information of the new user (family name, first name) </p>
  
  <p>I return a value like that:</p>
  
  <pre><code>$TextlabelUsername.text = $Textbox1.text.ToString().Substring(0,5) 
  </code></pre>
  
  <p>Which apply on a button click. </p>
  
  <p>But using that methode if one of my string value is less then 5 caracters the script return an error that the string is not enough long. </p>
  
  <p>Is there a way to select 5 or less caracters or an other method to process ?</p>