結果 : java get string before first occurrence of character