search length doesn't include spaces anymore