結果 : how to check if string has whitespace in python