A little refactoring of wildcards in the input line handling