.characters deprecated? From Listing 7.4


#1

Latest XCODE marks the .characters as deprecated, from Listing 7.4. Could use some help understanding how the implementation should work in XCODE 8.4.1. Thanks.