Trim multiple slashes at the end
Fixed pull request