filtered hits so only top 5 matches are displayed
fixed small bug with whitespaces