Exclude objects from search filters.
Using is_a instead of instance_of when checking string types.