code: public static boolean areEqual(String s1, String s2) {
          return (s1 == null) ? s2 == null : s1.equals(s2);
      }
docs: Null safe equals() method
  @return true if the two strs are equal, or if they're both null; false otherwise.