disable outputfile if string is empty