結果 : how to check for characters in a string python