code: function wrap (str, quote) {
      if (this.typecheck) t.typecheck('wrap', [str, quote]);
      if (!quote||quote=="'") return "'"+str+"'";
      if (quote == '"') return '"'+str+'"';
      return quote+str+quote;
  }
docs: wrap string with quotes