Update to filter function

Added min length option to the ccms_filter function just incase it's
needed down the road.