StrTrim

StrTrim  <var> <text>

Write to variable the text with trimmed out leading and trailing whitespaces.