boolean (String name) { for (String question : questionList) { if (name.startsWith(question)) { if (name.length() == question.length()) { return true; } final char nextChar = name.charAt(question.length()); if (Character.isUpperCase(nextChar) || nextChar == '_') { return true; } } } return false; }