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;

// output
hello world

strip x;
// output
hello world

Related function: trim