remove last slash