title: How can i get the index of the first and last char in string?
body: <p>Assume the below string : </p>
  
  <pre><code>String value = "161207CAD140000,0";
  </code></pre>
  
  <p>how can i get the index of the first char and the index of the last char for the substring <code>CAD</code>
  notice that the size of the substring may be changed from 2 ,3 or etc chars i want the solution to be dynamic.</p>