Use slice to remove trailing /