StringTrim

WMA link


StringTrim[s]

returns a version of s with whitespace removed from start and end.

StringTake