small refactor
splited String tests into Functions and Predicates