Improve code

Replace 2 or more slashes together with one function