code: private static boolean isEqual(String string1, String string2) {
          return (string1 == null && string2 == null) || (string1 != null && string1.equals(string2));
      }
docs: Both strings are null or equal.