---
title: "addCharacters(in:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmutablecharacterset/addcharacters(in:)-7q02"
---

# addCharacters(in:)

Adds to the receiver the characters in a given string.

## Declaration

```swift
func addCharacters(in aString: String)
```

## Parameters

- `aString`: The characters to add to the receiver.

## Discussion

Discussion This method has no effect if aString is empty.

## See Also

### Adding and Removing Characters

- [addCharacters(in:)](foundation/nsmutablecharacterset/addcharacters(in:)-4ppyw.md)
- [removeCharacters(in:)](foundation/nsmutablecharacterset/removecharacters(in:)-70nqp.md)
- [removeCharacters(in:)](foundation/nsmutablecharacterset/removecharacters(in:)-762gt.md)
