# strip {#strip}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`strip(X)`

## Arguments {#arguments}

**X** is a literal scalar/vector.

## Details {#details}

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

## Examples {#examples}

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

// output: hello world

strip x;
// output: hello world
```

Related function: [trim](../t/trim.md)

