String () { final String enteredText = getTrimmedText(); final int index = enteredText.lastIndexOf('#'); if (index == -1) { return null; } String name = enteredText.substring(index + 1).trim(); return StringUtil.isEmpty(name) ? null : name; }