Moved tag parsing out of record drivers; centralized trimming.