code: public static boolean isEqual(String pStr1, String pStr2) {
          if (pStr1 == null && pStr2 == null) {
              return true;
          } else if (pStr1 == null || pStr2 == null) {
              return false;
          } else if (pStr1.equals(pStr2)) {
              return true;
          }
          return false;
      }
docs: Checks if both the strings are equal for value - Case Sensitive.
  
  @param pStr1 A String value.
  @param pStr2 A String value.
  
  @return boolean A boolean <code>true</code> if the Strings are equal,
  otherwise <code>false</code>.
  
  @see String#equals(java.lang.Object)