/** Get the contents of this text node without all whitespace before and after * and with all whitespace between the words in the node reduced to a single space. */ public String getNormalizedText () { return getTrimmedText ().replaceAll ("\\s+", " "); }