validating && and || if spaced