Remove common string from a string using jquery or Javascript
<p>How can remove the 'tp.','ta.' and 'tta.' from below string from each place where it is coming</p>

<pre><code>str = " tp.FirstName, tp.FamilyName, ta.DOB, tta.TypeOfLocation
WHERE

tp.DateStamp BETWEEN '2012-02-12 15:13:00' AND '2013-02-12 15:13:00'

AND tta.db_name_id =21
AND

tp.FirstName = 'Darlene'";
</code></pre>

<p>I need result as below:</p>

<pre><code>FirstName, FamilyName, DOB, TypeOfLocation
WHERE

DateStamp BETWEEN '2012-02-12 15:13:00' AND '2013-02-12 15:13:00'

AND db_name_id =21
AND

FirstName = 'Darlene'";
</code></pre>

<p>Note: I have asked same question but this time I am using multiple removing string. Please assist me</p>
