tw_check_search function

Checks if an input is a search; if not, it tries to return a search