# isSpace {#isspace}

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

## Syntax {#syntax}

`isSpace(X)`

## Arguments {#arguments}

**X** is a STRING scalar or vector.

## Details {#details}

Check whether the string *X* consists of only space. Return "true" if all characters in *X* are space, "\\t" \(tab\), "\\r" \(carriage return\) or "\\n" \(newline escape\).

## Examples {#examples}

```
isSpace("hello world");
// output: false

isSpace(" \t ");
// output: true

isSpace(string());
// output: false
```

