Fix `String.prototype` polyfills

Ref. #562.