title: Getting a strange error for substringWithRange
body: <p>I have a strange issue with substringWithRange function.</p>
  
  <p>I have an NSString with a length of 22.</p>
  
  <p>When I do this:</p>
  
  <pre><code>NSString *result = [myString substringWithRange:NSMakeRange(3, 21)];
  </code></pre>
  
  <p>Everything is fine. But when I try to get something from middle, like:</p>
  
  <pre><code>NSString *result = [myString substringWithRange:NSMakeRange(11, 14)];
  </code></pre>
  
  <p>It gives an out of bounds exception.</p>
  
  <blockquote>
    <p>'NSRangeException', reason: '<em>*</em> -[NSCFString substringWithRange:]: Range or index out of bounds'</p>
  </blockquote>
  
  <p>So, what's wrong?</p>