function isString(o) {
    return typeof o === 'string' ||
      o && typeof o === 'object' && toStr.call(o) === '[object String]' || false
  }