delete unnecessary space