title: How to use Substring when String length is not fixed everytime
body: <p>I have string something like : </p>
  
  <pre><code>SKU: XP321654
  Quantity: 1
  Order date: 01/08/2016
  </code></pre>
  
  <p>The <code>SKU</code> length is not fixed , so my function sometime returns me the first or two characters of <strong>Quantity</strong> also which I do not want to get. I want to get only SKU value.</p>
  
  <p>My Code :</p>
  
  <pre><code>int index = Content.indexOf("SKU:");
  String SKU = Content.substring(index, index+15);
  </code></pre>
  
  <p>If SKU has one or two more digits then also it is not able to get because I have specified limit till <code>15</code>. If I do <strong>index + 16</strong> to get long SKU data then for Short SKU it returns me some character of <strong>Quantity</strong> also.</p>
  
  <p>How can I solve it. Is there any way to use instead of a static string character length as limit.</p>
  
  <p>My <code>SKU</code> last digit will always number so any other thing which I can use to get only <code>SKU</code> till it's last digit?</p>