deal empty input in word_search