結果 : python check if string follows pattern