match exact string in a sentence
<p>How to exactly match a given string in a sentence.</p>

<p>For example if the sentence is 
var sentence = "A Google wave is basically a document which captures a communication"</p>

<p>and the given string is 
var inputString= "Google Wave". I need to check the exact presence of Google Wave in the above sentence &amp; return true or false. </p>

<p>I tried </p>

<pre><code>if(sentence.match(inputString)==null){
            alert("No such word combination found.");
        return false;
        }
</code></pre>

<p>This works even if someone enters "Google W". I need a way to find the exact match. Please help</p>
