This code wasn't quite working because we're doing substitution on double-quote characters which is lengthening the text fields.   I didn't try and really figure it out, I just hacked the max width.