public static String mksmiley(String str) {
		synchronized (smileys) {
			for (Pattern p : Config.smileys.keySet()) {
				String res = Config.smileys.get(p);
				str = p.matcher(str).replaceAll(res);
			}
		}
		return str;
	}