remove last slash in url var