String () { String trimmedText = myTrimmedText; if (trimmedText == null) { final StringBuilder consolidatedText = new StringBuilder(); final XmlText[] textElements = getTextElements(); for (final XmlText textElement : textElements) { consolidatedText.append(textElement.getValue()); } myTrimmedText = trimmedText = consolidatedText.toString().trim(); } return trimmedText; }