alara num_density_to_mesh from stdout

Following up with #298. The PR fixes a minor issue when reading input from stdout. Splitting by "\n" as suggested in the docstrings removes the trailing "\n" from the string. This messes up the existing header line comparison, and also means that blank lines in the file become empty strings rather than single newline characters.