結果 : remove last character of a string in java