document type of returned string