Fixed whitespace issues in if statements