delete unnecessary space and ad