Global.String.prototype.trim ()
remove leading and trailing whitespace

Sourcecode in /home/hannes/helma/modules/core/String.js:
597:   String.prototype.trim = function () {
598:       var s = new java.lang.String(this);
599:       return String(s.trim());
600:   }