Checking format of input files