Rework string shims with help from es6-shim and add tests.