結果 : remove last char of string in java