Carrie,
You could use something like this to format your string:
... /* header */
replace(string(vh-Client, '9999', '0', ' ' ) +
replace(string(vh-BatchFeedId, '999999', '0', ' ' ) +
replace(string(vh-BatchSeqNum, '999999', '0', ' ' ) etc.
As usual there is probably a neater...