The Trim command returns inStr with both leading and trailing spaces removed.
Syntax
TRIM ( string_expression )