finding license name from input in file