added string-length and substring

I was pretty much done adding them anyway, including docs and tests, so here's the pull request.