結果 : python check string for invalid characters