code: @Override
      public void characters(final char[] chr, final int start, final int length) throws SAXException {
  
          final String text = new String(chr).substring(start, start + length);
          LOG.trace("characters; '{}'", text);
          final String trimmedText = text.trim();
          LOG.info("text: '{}'", trimmedText);
          this.textStack.push(trimmedText);
      }
docs: Detects text by trimming the effective content of the char array.