toolbox.string = {
    
    strip: function(str) {
        str = str.replace(/^\s+/g, ""); // strip leading
        return str.replace(/\s+$/g, ""); // strip trailing
    }
    
};