Trim trailing slashes before exploding