Need a advance

Hello all here,

Is there any guideliness/suggestions as to how to work with variable length strings?
What’s the best way to represent them on the GPU? best approach to sort them, find uniqueness and search for a substring within a string?

Thanks for your time,