strange to use doc.getText() + '', just use doc.getText()