結果 : java remove substring after last occurrence of character