strip empty values when building an IN criterion