結果 : check if character is a string python