I have a empty strings in data.
How to ignore them in filters?.
Filters must ignore the empty string automatically. Most probably, in your case it is not an empty string, but string with some white-space characters.
If issue still occurs, please share a snippet or a link to the demo, where the issue can be checked.