boolean (String name, String negativeName) { if (!name.startsWith(negativeName) || (name.length() != negativeName.length() && !Character.isUpperCase(name.charAt(negativeName.length())))) { return false; } return true; }