The FILTER function returns a data string equivalent to the original string minus occurrences of each character in filter. FILTER works on data strings only.
FILTER: Functions