Added search text length feature to prevent empty search from taking place
added to prevent empty search from taking place