title: Checking for words with prefix & suffix
body: <p>I tried but it seems I couldn't find out. The base form of word is "<strong><em>pakai</em></strong>" and the modified word (with <em>prefix</em>) is "<strong>memakai</strong>".</p>
  
  <p>The prefix is "<strong><em>me</em></strong>" but when it gets combined to "<strong><em>pakai</em></strong>", it turns the first alphabet "<strong><em>p</em></strong>" to "<strong><em>m</em></strong>", so "<strong><em>pakai</em></strong>" turns to "<strong><em>makai</em></strong>". </p>
  
  <p>So <strong><em>pakai</em></strong> --> <strong><em>memakai</em></strong>.</p>
  
  <pre><code>String w1 = "memakai";
  
  String w2 = "pakai";
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>k1.contains(k2) --&gt; false, it's correct since there is no "p" in "memakai"
  k1.indexOf(k2) --&gt; -1
  </code></pre>
  
  <p>My question is how to check if <em>w1</em> contains in <em>w2</em> (<em>w2</em> is base form of <em>w1</em>). Is there any efficient way to solve this case. Thanks</p>