fixed an issue with filtering on empty strings