nagatron Junior Poster 109 posts since Aug 2008 Reputation Points: 0 [?] Q&As Helped to Solve: 2 [?] Skill Endorsements: 0 [?] 0 3 Years Ago 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.