Fixing white spacing on if statement