Tidying up "clear search" command