code: public boolean textContains(String value, String expectedSubstring) {
          boolean result = false;
          if (value != null) {
              result = value.contains(expectedSubstring);
          }
          return result;
      }
docs: Checks whether values contains a specific sub string.
  @param value value to find substring in.
  @param expectedSubstring text that is expected to occur in value.
  @return true if value contained the expected substring.