private static String processMsg(String msg) {
        boolean endswithperiod = msg.endsWith(".");
        if (endswithperiod)
            msg = msg.substring(0, (msg.length() - 3));
        String[] msgarr = msg.split(" ");
        sb = new StringBuilder();
        for (ITeam t : TeamManager.getTeams()) {
            for (String s : msgarr) {
                if (s.equalsIgnoreCase(t.getName())) {
                    sb.append(t.getColor()).append(t.getName()).append(ChatColor.RESET).append(" ");
                }
                for (Player p : Bukkit.getServer().getOnlinePlayers()) {
                    if (s.equalsIgnoreCase(p.getName())) {
                        sb.append(t.getColor()).append(p.getName()).append(ChatColor.RESET).append(" ");
                    }
                }
            }
        }
        String trimmed = sb.toString().trim();
        if (endswithperiod) {
            sb = new StringBuilder();
            sb.append(trimmed).append(".");
        }
        return sb.toString();
    }