結果 : get all characters before a specific character python