fix searching text with spaces