String (@NotNull String name) { if (isEmptyOrSpaces(name)) return name; char c = name.charAt(0); if (isVowel(c)) { return "an" + Character.toUpperCase(c) + name.substring(1); } return "a" + Character.toUpperCase(c) + name.substring(1); }