minor search controller and model changes to fix spaces being stripped