> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Filter: Allow only letters

> Takes the input and makes sure all characters other than letters are removed. It means it will also remove spaces.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Takes the input and makes sure all characters other than letters are removed. It means it will also remove spaces. Digits, punctuation and symbols are stripped out too, so a value made of several words is joined into one continuous run of letters. Use this when you need just the letters from a value, for example to pull the text part out of a mixed code. Accented letters from other languages are kept.

This documentation describes: [Schema](/schemas/mapper/string-filter-letters)

## Fields

This step has no settings. It takes the value it is pointed at and returns it with every character that is not a letter removed.

## Sample data

| Field  | Value                     |
| ------ | ------------------------- |
| (none) | This step has no settings |

Input:

```json theme={null}
{ "color": "Red 500 #ff0000" }
```

Output:

```json theme={null}
{ "color": "Redff" }
```

```json Configuration theme={null}
{
  "prototype": "string-filter-letters",
  "parameters": {}
}
```
