deal with space char in search sentence