# String without characters in set

**URL:** <https://forums.swift.org/t/string-without-characters-in-set/19192>\
**Category:** Pitches\
**Created:** [January 2, 2019, 3:29am UTC](https://forums.swift.org/t/string-without-characters-in-set/19192 "2019-01-02T03:29:32Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [January 6, 2019, 6:35am UTC](https://forums.swift.org/t/string-without-characters-in-set/19192/17 "2019-01-06T06:35:25Z")

</div>

Like padding left or right, I assume this would just be a center version. e.g. `"a".pad(.center, filler: "0", length: 3)` would return "0a0". Of course, many of these operations are similar to operations on collections in general, so just getting more algorithms into the standard library would help.

---

_[View the full topic](https://forums.swift.org/t/string-without-characters-in-set/19192)._
