It could possibly be solved by fiddling wtih
MUIA_Weight, weight
I havent been able to get stringgadgets to have
fixed size myself.
But as has been said, it would help to see the code.
Edit..
Try a combination of "MUIA_Weight, weight" for the
string(s) and Put RectangleObjects before/and/or/after the stringobject.
For example, to align a gadget to the right
HGroup,
Child, RectangleObject, MUIA_Weight, 75, End,
Child, StringObject,...,MUIA_Weight, 25, End,
End,