Better file lines joining
Use isnan instead of isempty