title: java, how to determine if a string contains a sub string in a particular order
body: <p>I have two strings to compare </p>
  
  <pre><code>String st1 = "database-2.0/version\"25-00\"";
  String st2 = "database2.0version25";
  </code></pre>
  
  <p>I want to determine if st1 contains st2. In the example provided I expect to get Yes as answer because the order of characters in st2 is same is st1 and it only missing some characters. Is any function in Java library to do such comparison? I am aware of <code>st1.indexOf(st2)</code> and <code>st1.contains(st2)</code> but they didn't work in this case, both returned false. </p>