add String.prototype methods