title: Print first letter of every word in MVC helper method
body: <p>I have this helper method on an MVC View that returns the first name and last name of the user (Windows autheticated application)</p>
  
  <pre><code>@helper AccountName()
  {
      using (var context = new PrincipalContext(ContextType.Domain))
      {
          var principal = UserPrincipal.FindByIdentity(context, User.Identity.Name);
          @principal.GivenName&lt;text&gt; &lt;/text&gt;@principal.Surname
      }
  }
  </code></pre>
  
  <p>How can I extract the initials of the user(first letter of first name and first letter of last name)?</p>
  
  <p>I tried with linq:</p>
  
  <pre><code>@AccountName().ToString().Split(' ').Select(x =&gt; x[0]).ToArray()
  </code></pre>
  
  <p>But that results: </p>
  
  <pre><code>System.Char[]
  </code></pre>
  
  <p>Any help would be appreciated</p>