Addresses issue where search criteria must be strings.