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