Fix a logical check of line number format