create a copy of document root string