Strip unnecessary slash