結果 : java remove last occurrence of character in string