OOP way of prototype extension

http://stackoverflow.com/questions/4085566/adding-the-replaceall-method-to-the-actionscript-string-class