Add trim to range generator