結果 : python substring before first occurrence of character