Remove an extra newline
Fix bug in name parsing when sample name contains periods