add examples for string.js