remove trailing slashes