Asfunction problem

Here using asfunction i put link to each word in a text field dynamically.
link will appear over extra spaces in each end of the line.
i want to remove the link over extra spaces.
I attached fla to ur reference. pl… help me
regards
kavi