How to delete the spacing of the last word in the output from speech to text?

image

it have the way to delete the spacing at the last of "hello"?
i dont want it have spacing after the last word

String trim