handles when there is white space in the search field, controller removes whitespace via regex