Clear search register after removing whitespaces