String.prototype.beginsWith = function(t) { 
  if (!t) return false;
  return (t == this.substring(0, t.length)); 
}

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

String.prototype.removeHtml = function() {
  return this.replace(/(<([^>]+)>)/ig,"");
}  
