Cleaned up some massive block or statements with a nice util

class
and static function beginsWithAny(String checkString, String[] prefixes)