code: public static boolean compare(@Nullable String str1, @Nullable String str2)
    {
      return (str1 == null ? str2 == null : str1.equals(str2));
    }
docs: This compares two strings with both possible null values.
  
  @param str1
  @param str2
  @return