Just to add, the user define String i also want to filter for is obtained from the user via uipanel with radio buttons on i.e.:
switch strCM
case 'rbCM1'
CM='C1'
case 'rbCM2'
CM='C2'
case 'rbCM3'
CM='C3'
case 'rbCM4'
CM='C4'
case 'rbCM5'
CM='C5'
case 'rbCM6'
CM='C6'
Not sure how to include the String CM into the filter requirement