Fixed separator handling in list_remove