Trim the NOLIST field before case statement