結果 : remove last char from string in java