remove leading and trailing whitespace from job queries in myapp.py