Add trimming to the ID param