update string-functions.js

Added template for text manipulations in a chrome console