Replace whitespace with _ in search strings