strip

strip() -> string

移除字符串首尾的所有空白符。

样例

' hello world! '.strip(); 
// -> 'hello world!'