if an array of ids is passed (for POST method), make them into a string