結果 : how to check if a character is a string python