Added a fuzzy search for a title number or postcode. The search term has...

... the spaces striped out to allow a search for postcodes with spaces.
I would just change this to something like:
import re
re.sub('\s+', '', string_with_spaces)

then it would handle any trailing and internal white space