Each `part`'s leading and trailing slashes are removed. So if `parts` was `['/a/', '/b/']`, the `map` would return `['a', 'b']`. I get the feeling not understanding your question though. Could you explain what you mean by *all* leading and trailing slashes?