In addition to passing spaces at the end of the string you will need to specify that Eggplant shouldn’t “trim” the image that comes back.
You can do that by including the property (Trim:NO) in your text property list.
A similar feature to point out is that with any image you can also specify a ClipRectangle property. That property is a subrectangle of the image that you want to use.