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