結果 : python check if string contains only allowed characters