Remove spaces: `def validate_ex(ex, tryCnt):`