split and trim ids list