code: private static boolean checkTokenValid(final char[] token) {
          if (token == null || token.length == 0) {
              return true;
          }
          for (int i = 0; i < token.length; i++) {
              if (token[i] == '\n') {
                  return false;
              }
  
          }
          return true;
      }
docs: Used to check internally that neither event names nor IDs contain line feeds