結果 : check for characters in a string python