predicate to nsstring switching