code: private void applyWhiteSpace()
      {
          text = applyTransformations(collapseWhitespaces(node.getNodeValue()));
          textStart = 0;
          textEnd = text.length();
          isempty = (textEnd == 0);
      }
docs: Applies the whitespace processing represented by the {@link #collapsews} property to the text content. The text start and text end
  indices are reset to their initial values.