I think this will do what you want.... PARSELIST := "8:30":"8:30":"8:30":"9:30":"9:30":"9:30"; OMITLIST := "8:30":"8:30"; OMITLIST := @Sort(OMITLIST;[Ascending]); @Trim(@Explode(@ReplaceSubstring(@Implode(PARSELIST;"~");@Implode(OMITLIST;"~");"");"~"))