private boolean containsRestrictedPrefix(String tpl){
  for (  String i : blackPrefixList) {
    if (tpl.startsWith(i))     return true;
  }
  return false;
}

private boolean containsRestrictedPrefix ( String tpl ) { for ( String i : blackPrefixList ) { if ( tpl . startsWith ( i ) ) return true ; } return false ; }
checks if the input string contains prefixes from black list
