Custom replace method?
<p>Is it possible to create your own custom, I believe the term is 'method'? For example, something like this:</p>

<pre><code>var str = "test"
str.replaceSpecial();
</code></pre>

<p>where replaceSpecial() will automatically replace say, the letter e with something else. </p>

<p>The reason I'm interested in doing this is because what I want to do is grab strings and then run a large number of replace actions, so I'm hoping that when I call on replaceSpecial() it will run a function.</p>

<p>Thanks</p>
