cleaning document data