Differentiate between trailing slashes and not