private boolean containsAllowedPrefix(String tpl){
  if (whitePrefixList.isEmpty())   return true;
  for (  String i : whitePrefixList) {
    if (tpl.startsWith(i))     return true;
  }
  return false;
}

private boolean containsAllowedPrefix ( String tpl ) { if ( whitePrefixList . isEmpty ( ) ) return true ; for ( String i : whitePrefixList ) { if ( tpl . startsWith ( i ) ) return true ; } return false ; }
checks if the input string contains prefixes from white list
