﻿String.prototype.supplant = function(o) {
	return this.replace(/{([^{}]*)}/g,
        function(a, b) {
        	var r = o[b];
        	return typeof r === 'string' || typeof r === 'number' ? r : a;
        }
    );
};

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g, "");
};


