You might want to check out Lite Foundation which has a powerful string class which should help you to solve the problem. Here is the documentation for the class so you can check if it has everything you need: http://widerwille.com/litefoundation/reference/group___l_f_string_ref.html

Download link: http://widerwille.com/litefoundation/litefoundation.zip


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com