Improved name query filter
Improved name query filter

Closes: #335
Approved by: jrohel

rpm-software-management/libhif,rpm-software-management/libdnf,edynox/libdnf,rpm-software-management/libdnf,Conan-Kudo/libhif,rpm-software-management/libdnf,rpm-software-management/libdnf,edynox/libdnf,hughsie/libhif,hughsie/libhif,hughsie/libhif,hughsie/libhif,Conan-Kudo/libhif,rpm-software-management/libhif,edynox/libdnf,Conan-Kudo/libhif,rpm-software-management/libhif,rpm-software-management/libhif,edynox/libdnf,Conan-Kudo/libhif