private static String trimAlias(String alias) {
    int len = alias.length();
    return alias.substring(
            alias.charAt(0) == ':' ? 1 : 0,
            alias.charAt(len - 1) == ':' ? len - 1 : len);
  }
Returns the {@link com.vdurmont.emoji.Emoji} for a given alias.

@param alias the alias

@return the associated {@link com.vdurmont.emoji.Emoji}, null if the alias
is unknown
src/main/java/com/vdurmont/emoji/EmojiManager.java