Update lib/string.js

string extended