結果 : get string before a character python