結果 : get the string before a character in python