結果 : python check string only contains certain characters