removing trailing slashes