A little optimization of input line wildcards handling