Does swift have a trim method on String? For example: let result = " abc ".trim() // result == "abc" 16 Answers 16 Tags: stringswifttrim