You can determine the width of a string using the size method:
size
Workspace Transcript show: 'Broccoli' size printString Transcript 8