title: Exception calling "Substring" with "2" argument(s):
body: <p>I am trying to create a username based on first and last name. I want just the first initial of the username. When I try the code below I get this error</p>
  
  <p><a href="https://i.stack.imgur.com/bIbTI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bIbTI.png" alt="Substring"></a></p>
  
  <pre><code>Import-Csv "C:\Users\Alex.piwowar.adm.j2global\desktop\ExcelMicroADAdd.csv" | ForEach-Object{
      $First=$_."First"
      $Last=$_."Last"
      $Location=$_."Location"
      $Title=$_."Title"
      $Department=$_."Department"
      $ManagerName=$_."Manager"
      $Company=$_."Company"
  
      $FirstIntitial = $First.Substring(0,1)
  }
  </code></pre>
  
  <p>From my understanding what I entered will start at the beginning of <code>$First</code> and move over one which should be the first letter.</p>
  
  <p>Am I thinking incorrectly?</p>