title: find the position of a string in another string
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1261041/substring-algorithm">substring algorithm</a>  </p>
  </blockquote>
  
  
  
  <p>Given two strings, A and B, how to find the first position of B in A?
  For instance, A = " ab123cdefgcde"; B= "cde"
  Then the first position of B in A is 5.</p>
  
  <p>Is there any trick to solve this problem or just search A from the start?</p>