Trimming wordfilter