Strips the slash from the start and end of a path.
The path to strip
The path without leading/trailing slashes
Strips the slash from the start and end of a path.