String question

is there any function to remove blank space in a text string?
something like have a="Hello " and can get a=“Hello”