text trim and append function defect.  Was adding a "(null)" string as a prefix