searching more flexible

accounted for when the search for the course has no space but the ones
in the db do