結果 : how to check if a string matches a specific format python