Revert to removing spaces from input query