Hi Jeff98,
As PHV suggests, you can use Trim(MyStr), but be aware this will affect double spacings within the string too. Same goes for the solution posted by missinglinq. For example:
" My String "
gets changed to:
"My String"
If preserving any internal double spacing is important, you could achieve that via:
LTrim(RTrim(MyString))
Cheers
[MS MVP - Word]