Trim trailing slashes