Reimplement java.lang.String with JS Strings.

Map tends to be very slow.