Remove Last Char From String In Java