str trim for strings> str trim {flags} ...rest
--char, -c {string}: character to trim (default: whitespace)--left, -l: trims characters only from the beginning of the string--right, -r: trims characters only from the end of the string...rest: For a data structure input, trim strings at the given cell paths| input | output | 
|---|---|
| list<string> | list<string> | 
| record | record | 
| string | string | 
| table | table | 
Trim whitespace
>'Nu shell '|str trim
Nushell
Trim a specific character
>'=== Nu shell ==='|str trim-c'='|str trim
Nushell
Trim whitespace from the beginning of string
>' Nu shell '|str trim-l
Nushell
Trim a specific character
>'=== Nu shell ==='|str trim-c'='
Nushell
Trim whitespace from the end of string
>' Nu shell '|str trim-r
Nushell
Trim a specific character
>'=== Nu shell ==='|str trim-r-c'='
===Nushell
    Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
    https://www.nushell.sh/commands/docs/str_trim.html