結果 : how to remove end character from string in java