Core: Removing main document string.