Check out my trailing slash removal technique