Reimplement java.lang.String with JS Strings.