I like your idea about using strcat() things but it wont help here because the problem is with the overal design. in detail - the short patch highlights " XY" instead of just "XY" where some sort of hackery is needed... the pointer magic there is for exactly this purpose.. I'll see if I can improve anything but I doubt that....