title: How to capitalize the first character of sentence using Swift
body: <p>I have a String description that holds my sentence and want to capitalize only the first letter. I tried different things but most of them give me exceptions and errors. I'm using Xcode 6.</p>
  
  <p>Here is what I tried so far:</p>
  
  <pre><code>let cap = [description.substringToIndex(advance(0,1))] as String
      description = cap.uppercaseString + description.substringFromIndex(1)
  </code></pre>
  
  <p>It gives me:  </p>
  
  <pre><code>Type 'String.Index' does not conform to protocol 'IntegerLiteralConvertible'
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code> func capitalizedStringWithLocale(locale:0) -&gt; String
  </code></pre>
  
  <p>But I haven't figured out how to make it work. </p>