結果 : how to check characters in a string python