remove trailing slash (/)