Added string type check for hierarchical facet search.