結果 : remove last character from a string java