bugfix toString() BehemothDocument (ArrayOutOfBoundsException) + avoid building string for whole content