title: Check if string contains other string elements
body: <p>I am trying to check if string contains elements from different string in specific order.</p>
  
  <p>For example:</p>
  
  <p>large string: thisisstring</p>
  
  <p>small string: hssg</p>
  
  <p>it should return true.</p>
  
  <p>I only figured out how to check if string contains whole other string but not parts.
  This is the code that I wrote for checking for now:</p>
  
  <pre><code>if ([largestring rangeOfString:smallstring].location != NSNotFound) {
     printf("contains");
  }
  </code></pre>