結果 : check each character in a string python