Fix many space bug and empty words in search