Jquery Substring Replace
<p>I am building a CMS that uses query strings to show different editors.</p>

<p>Example:</p>

<pre><code>editors.php?editor=Articles
</code></pre>

<p>I need to make the word article singular for a button that say "New Article". I want to use the same query string editor value to avoid a big if statement.</p>

<p>I need to do it with javascript. It is only going to run on my 4 pre-defined strings.</p>

<p>basically this: if(string has s at the end){drop the s}</p>
