updated strip whitespace by removing last search from search history

Signed-off-by: Guyzmo <guyzmo+qt@m0g.net>