結果 : python 3 check if string contains only certain characters