code: private static boolean isToken(String value) {
          // ----- BEGIN android -----
          if (RESERVED_NAMES.contains(value.toLowerCase(Locale.US))) {
              return false;
          }
          // ----- END android -----
  
          int len = value.length();
  
          for (int i = 0; i < len; i++) {
              char c = value.charAt(i);
  
              if (c < 0x20 || c >= 0x7f || tspecials.indexOf(c) != -1)
                  return false;
          }
          return true;
      }
docs: /*
  Tests a string and returns true if the string counts as a
  token.
  
  @param value             the <code>String</code> to be tested
  
  @return                  <code>true</code> if the <code>String</code> is
  a token; <code>false</code> if it is not