Use String.prototype instead of Object.prototype in defineProperty