title: NSIS - Remove leading and trailing whitespaces from a string
body: <p>I want to trim my textbox value in NSIS, for that i have used the below link </p>
  
  <p><a href="http://nsis.sourceforge.net/Remove_leading_and_trailing_whitespaces_from_a_string" rel="nofollow">http://nsis.sourceforge.net/Remove_leading_and_trailing_whitespaces_from_a_string</a>
   Problem with my solution is, above example remove the entire text followed by the text say example my text is something like this " First Name ". when i call the trim method it removes Entire Name itself and giving the result as "First". But i want to remove only leading and trailing whitespace. Not the inbetween spaces.</p>
  
  <p>How can i achieve this ?</p>