trailing slash removal