trim slashes for route path