String pat = "/"+Filter.ABSOLUTE_DATE_AND_TIME_PAT+"/"; if(util.match(pat, in)) { return util.substitute("s/"+Filter.ABSOLUTE_DATE_AND_TIME_PAT+"//", in); } else { return in; }