Changed replaceAll

Changed replaceAll so that it no longer extended String.prototype. I'm
also in the middle of adding unit tests.
Moved loop out of send functions

There is now a seperate function to finalize the statement for
evaluation which is then called in the send function.