title: Easy way to set a single character of an NSString to uppercase
body: <p>I would like to change the first character of an NSString to uppercase. Unfortunately, <code>- (NSString *)capitalizedString</code> converts the first letter of every word to uppercase. Is there an easy way to convert just a single character to uppercase?</p>
  
  <p>I'm currently using:</p>
  
  <pre><code>NSRange firstCharRange = NSMakeRange(0,1);
  NSString* firstCharacter = [dateString substringWithRange:firstCharRange];
  NSString* uppercaseFirstChar = [firstCharacter originalString];
  NSMutableString* capitalisedSentence = [originalString mutableCopy];
  [capitalisedSentence replaceCharactersInRange:firstCharRange withString:uppercaseFirstChar];
  </code></pre>
  
  <p>Which seems a little convoluted but at least makes no assumptions about the encoding of the underlying unicode string.</p>