Swift String is one of the most commonly used fundamental types in the Swift standard library, but it has pitfalls that are easily overlooked. At Uber, we work with multiple apps that are deployed in multiple markets and localized in over 50 languages, which rely heavily on correctness and safety of String. We’ve also built multiple code generators and other developer tools that involve a large amount of String processing, and thus String performance can have a huge impact. This talk will discuss various scenarios where we encountered pitfalls of Swift Strings, and the methods we used to resolve challenges from both the correctness and performance perspectives. It will also cover what you can do for your apps or tools to safeguard and optimize if you use Strings a lot.