code: protected boolean similar(Text control, Text test) {
          if (control == null) {
              return test == null;
          } else if (test == null) {
              return false;
          }
          return control.getNodeValue().equals(test.getNodeValue());
      }
docs: Determine whether the text nodes contain similar values
  @param control
  @param test
  @return true if text nodes are similar, false otherwise