check if string is not null or empty in pythonの検索結果