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