use for loop not all() in category predicates for String