結果 : write a python program to check that a string contains only a certain set of characters