> in particular, why don't you just build the txtlist, and do the join at the end.

Fixed, better now?