Eliminate beginning newline from results

This fixes #5 by removing the non-"other" elements before looping over
names, rather than relying on array indices.