Set text without breaking inline links?

I’ve got a shape with some text on it, and a couple words of that text is an inline link. I’d love a way to change some of the non-link text without breaking the link, but the only straightforward way to set text in Axure sets the text for the whole shape, overwriting the link. So even using str.replace won’t work, because that stores the existing text for the whole shape, replaces the text, and then writes the whole thing back to the shape. I’m really scratching my head here. Any ideas? I’ve got workarounds and this isn’t dire, but it’s eating away at me and will soon become an obsession. And we know where that leads.