Reimplement java.lang.String with JS Strings.
Replace fromCharCode loop with TextEncoder; fix indentation; fix getField conventions.
Add a few tests for lastIndexOf and endsWith.
Merge pull request #353 from mcav/strings

Reimplement java.lang.String with JS Strings.