# ee.String

<br />

Constructs a new String.

<br />

| Usage | Returns |
|---|---|
| `ee.String(string)` | String |

| Argument | Type | Details |
|---|---|---|
| `string` | Object\|String | A string or a computed object. |

## Examples

### Code Editor (JavaScript)

```javascript
print(ee.String('I am a string'));  // I am a string

// Strings can use emoji.
print(ee.String('🧲⚡️👀'));  // 🧲⚡️👀

// Empty string.
var empty = ee.String('');
print(empty);  // ''
print(empty.length());  // 0
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

```python
display(ee.String('I am a string'))  # I am a string

# Strings can use emoji.
display(ee.String('🧲⚡️👀'))  # 🧲⚡️👀

# Empty string.
empty = ee.String('')
display(empty)  # ''
display(empty.length())  # 0
```