Do not allow any nonwhitespace content after names

The parser was accepting content after names on name lines which causes
errors in the transform functions due to unexpected data.