static String shortUserName(String userName) { if (userName.isEmpty) return ''; return userName.substring(0, userName.indexOf('@')); }