StringTrim
StringTrim["string"]
trims whitespace from the beginning and end of "string".
StringTrim["string",patt]
trims substrings matching patt from the beginning and end.
Details and Options
- Whitespace is taken to include any number of spaces, tabs, and newlines.
- StringTrim[{s1,s2,…},…] gives the list of results for each of the si.
Examples
Wolfram Research (2008), StringTrim, Wolfram Language function, https://reference.wolfram.com/language/ref/StringTrim.html.
Text
Wolfram Research (2008), StringTrim, Wolfram Language function, https://reference.wolfram.com/language/ref/StringTrim.html.
CMS
Wolfram Language. 2008. "StringTrim." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/StringTrim.html.
APA
Wolfram Language. (2008). StringTrim. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StringTrim.html