better searching and trailing space indicator