I would like to know to remove spaces from start and end of a string without removing the middle space. Ex.
_ _String _ Sample _ _ = String sample
I have a code:
Text1.text = Replace(Text1, " ", "")
The code removes all the space in a text. Ex. _ _String_Sample_ _ = StringSample
I want the middle space to remain. Only the first and the last space will be removed.