Useful extensions to the javascript String object