Thanks, that's a good idea. I'll change it in properties, but as I posted in the .capx example, 0.5*text.width does not work. If you could post an example with it working, I'd be very impressed.
EDIT:
Here's the problem though - if I want to dynamically change that text, and I set the object to pin to the center of the text, it will pin to the center of the text & the whitespace, regardless of whether I use the "trim" function.
Example - the center of this string:
"string1 "
is here
Now, let's say I want to change the WIDTH of the text like this
Set Width(Text.TextWidth) will delete entire strings. Sometimes, it will take a phrase like "I went shopping" and return "I "
As far as I can tell, the trim function does not do anything, and the set Width = Text.TextWidth deletes part of my string.