Method to decide whether a String input returns true or false through the predicate function or not.
true
false
bool validate(String? input, BoolFn predicate) { return predicate(input); }