correct whitespaces in if clause