# xarray.core.accessor_str.StringAccessor.isalnum

#### StringAccessor.isalnum()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L865-L887)

Check whether all characters in each string are alphanumeric.

* **Returns:**
  **isalnum** ([array](https://numpy.org/doc/stable/glossary.html#term-array) of [`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – Array of boolean values with the same shape as the original array.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('ed06d7e7-ec0f-4b60-b070-88c0d812d4a3','3a836bba-66dc-4467-881a-4c86106aa61b','3714070b-6760-4b33-8de4-ad70ca6bdd7c','../lite/tree/../notebooks/index.html?path=9ced6e4c_a0a1_498c_8bc5_e528f9430d5c.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["H2O", "NaCl-"], dims="x")
>>> da
<xarray.DataArray (x: 2)> Size: 40B
array(['H2O', 'NaCl-'], dtype='<U5')
Dimensions without coordinates: x
>>> isalnum = da.str.isalnum()
>>> isalnum
<xarray.DataArray (x: 2)> Size: 2B
array([ True, False])
Dimensions without coordinates: x
```

<div id="3714070b-6760-4b33-8de4-ad70ca6bdd7c" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('ed06d7e7-ec0f-4b60-b070-88c0d812d4a3','3714070b-6760-4b33-8de4-ad70ca6bdd7c')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('ed06d7e7-ec0f-4b60-b070-88c0d812d4a3','3714070b-6760-4b33-8de4-ad70ca6bdd7c')">Open In Tab</button></div><div id="3a836bba-66dc-4467-881a-4c86106aa61b" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
