結果 : how to check if string not empty python