remove trailing slash