strip

Syntax

strip(X)

Details

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

Parameters

X is a STRING scalar/vector.

Returns

Data of type STRING, in the same data form as the input parameter.

Examples

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

// output: hello world

strip x;
// output: hello world

Related function: trim