結果 : check for a pattern in a string python