title: Javascript to remove second word from among 2 words phrase without altering first word
body: <p>This is my actual code</p>
  
  <pre><code>&lt;div class="bigright "&gt;
     &lt;ul&gt;
         &lt;li id="cp_ad_type" class=""&gt;&lt;span&gt;Ad Type:&lt;/span&gt; Offer Ads&lt;/li&gt;
     &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Actual Output:</strong></p>
  
  <ul>
  <li><strong>Ad Type:</strong> Offer Ads</li>
  </ul>
  
  <p>Expected Code</p>
  
  <pre><code>&lt;div class="bigright "&gt;
     &lt;ul&gt;
         &lt;li id="cp_ad_type" class=""&gt;&lt;span&gt;Ad Type:&lt;/span&gt; Offer&lt;/li&gt;
     &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Expected Output</strong></p>
  
  <ul>
  <li><strong>Ad Type:</strong> Offer</li>
  </ul>
  
  <p>I want to remove <strong>Ads</strong> word from <strong>Offer Ads</strong> phrase without altering <strong>Offer</strong> word as shown in Expected Output &amp; code. Bcoz <strong><em>Ad Type</em></strong> may change between <strong>Offer Ads</strong> or <strong>Wanted Ads</strong> depending upon user choice. So common word is <strong>Ads</strong> in both <strong>Offer</strong> &amp; <strong>Wanted</strong>. I just want to remove to that <strong>Ads</strong> Word.</p>
  
  <p>Help needed!!</p>