Update views.py

Strip leading/trailing spaces from search term.