結果 : java remove last character from string if exists