boolean (String name) { for (String word : name.split("\\W+")) { if (word.equalsIgnoreCase("secret") || word.equalsIgnoreCase("token") || word.equalsIgnoreCase("key") || word.equalsIgnoreCase("password")) { return true; } } return false; }