strip

Syntax

strip(X)

Arguments

X is a literal scalar/vector.

Details

Remove all space, tab, new line, and carriage characters in both head and tail of a string.

Examples

$ x="\nhello world\t\n";
$ x;

hello world

$ strip x;
hello world

Related function: trim