結果 : check pattern in string python