NameUtil { public static boolean isPersonSuffix(String word) { String suffixCheck = word.trim().replaceFirst("[\\.,]$", "").toUpperCase(); return (suffixCheck.length() < 4 && COMMON_PERSON_SUFFIXES.contains(suffixCheck)); }  static String normalizeCase(String text); static String capitalizeFirstLetter(String word); static String[] lastnameSuffix(String surname); static boolean isPersonSuffix(String word); static String normalizeOrgNameCase(String companyName);  }
@Test public void isPersonSuffix() { assertTrue(NameUtil.isPersonSuffix("III")); assertTrue(NameUtil.isPersonSuffix("VI,")); assertTrue(NameUtil.isPersonSuffix("Esq.")); }