using GeoNodes to procedurally scale one object based on the length of another

https://preview.redd.it/k3f6nnqrt0re1.png?width=3440&format=png&auto=webp&s=34b2095d1f7ee2d1d7456bf81dae8338bd194324

I have a plane (grid node) and a string node. I'd like to have the plane adjust its width (or X scale value), to the length of the string text procedurally. so if I change the string input, shortening or prolonging it, the plane would contain the string within its borders.

I actually have no ideas how to approach it. as for the plane, I wanted it to scale from the same origin as the string, which is aligned to the left. that's why I've used to transform nodes, one that only positions the grid to the right, to offset its pivot point, and the other sets the scale. but I'm really not sure this is the best way to go about it. I'd appreciate your suggestions :)