private static String normalizeCondition(String variable, String operator, String content) {
		String normalCondition = "";
		content = content.toLowerCase();
		
		if (content.contains(" * ")) {
			normalCondition = "\"" + variable + "\".match(/\\b" + content.replace(" * ", "\\b.*\\b") + "\\b/) !== null";
		}
		
		else if ("*".equals(content)) {
			normalCondition = "\"" + variable + "\" !== null";
		}
		
		else if ("=".equals(operator)) {
			normalCondition = "\"\\b" + variable + "\\b\" === \"\\b" + content + "\\b\"";
		}
		
		else if ("!=".equals(operator)) {
			normalCondition = "\"\\b" + variable + "\\b\" !== \"\\b" + content + "\\b\"";
		}
		
		else if ("in".equals(operator)) {
			normalCondition = "\"" + variable + "\".match(/\\b" + content + "\\b/) !== null";
		}
		
		else if ("!in".equals(operator)) {
			normalCondition = "\"" + variable + "\".match(/\\b" + content + "\\b/) === null";
		}
		
		else if ("sw".equals(operator)) {
			normalCondition = "\"" + variable + "\".match(/^" + content + "\\b/) !== null";
		}
		
		else if ("ew".equals(operator)) {
			// Assume every utterances end with a punctuation
			normalCondition = "(\"" + variable + "\".lastIndexOf(\"" + content + "\") >= 0 && \"" + variable + "\".lastIndexOf(\"" + content + "\") == \"" + variable + "\".length - \"" + content + "\".length)";
		}
		
		else {
			normalCondition = "\"" + variable + "\" " + operator + " \"" + content + "\"";
		}
		
		return normalCondition;
	}