replace ; by , and remove empty line.