public Object call(Properties bindings, Object[] args) {
if(args.length==1){
String s = args[0].toString();
if(s.isEmpty()){
return new EvalError(ControlFunctionRegistry.getFunctionName(this) + " Cannot urlify empty string");
}
s = s.toLowerCase().replaceAll("\\s+", "-").replaceAll("[^-a-zA-Z0-9]", "").replaceAll("\\-\\-+", "-");
return s;
}
return new EvalError(ControlFunctionRegistry.getFunctionName(this) + " expects 1 string");
}