title: Check if a string contains exact match
body: <p>I want to check if a string <code>(let entry)</code> contains exact match with <code>let expect</code>:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let expect = 'i was sent'
  let entry = 'i was sente to earth' // should return false
  // let entry = 'to earth i was sent' should return true
  
  // includes() using the first instance of the entry returns true
  if(entry.includes(expect)){
  console.log('exact match')
  
  } else {
  console.log('no matches')
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>There are lots of answers on StackOverflow but I can't find a working solution.</p>
  
  <p><strong>Note:</strong></p>
  
  <pre><code>let expect = 'i was sent' 
  let entry = 'to earth i was sent'
  </code></pre>
  
  <p>should return true </p>
  
  <pre><code>let expect = 'i was sent' 
  let entry = 'i was sente to earth'
  </code></pre>
  
  <p>should return false</p>