fix space surounding variables in if()