FIX: use correct slicing of classify mask/match string