/*
	***********************************

	string prototypes

	add functionality to the string class

	***********************************
*/

String.prototype.trim = function()
{
	return this.replace(/^\s+|\s+$/g, "");
}

String.prototype.leftTrim = function()
{
	return this.replace(/^\s+/, "");
}

String.prototype.rightTrim = function()
{
	return this.replace(/\s+$/, "");
}

/*
	***********************************

	end of string prototypes

	***********************************
*/
