/*
 * $Header: /Engine/string.js   1   2004-07-27 16:36:00+02:00   eruis $
 * Created on:      9-April-2004
 * Original author: Eric Ruis
 *
 * Description:
 * 	Adds a trim function to the string object
 */

String.prototype.trim = function() {
	// skip leading and trailing whitespace and return everything in between
	return this.replace(/^\s*(\b.*\b)\s*$/, "$1");
}
