結果 : java remove n characters from end of string