Modify string.js

Modify string.js to be consistent with all rest of library