attempting to remove trailing slashes