結果 : python get string before first occurrence of character