﻿String.prototype.trim = function() {
 var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/);
 return (m == null) ? "" : m[1];
}
