結果 : how to get a string before a specific character in python