結果 : get string before substring python