Remvoe redundent space in search autocomplete