Thanks again si_the_geek.

it won't work. Maybe i misunderstand for what you have suggested.

What i did is '%" & CSClass.ToString() & "_'" instead of '" & CSClass.ToString() & "%'

and use multiple copies of that, one for each possible length
What did you mean by this? How to do that?