make a string out of docs ids