Any way to change text object to read something different in code?

Edit - Please delete this post as I found the solution to this question in an older post. Thanks

Hi all,

Is there a way to change text objects to display a new text string.

Eg: Text object that reads ‘Speed’

Change it such that it displays info: example a variable like ‘Speed 100’