What is the more elegant way to remove all characters after specific character in the String object in Swift?
String
Suppose that I have the following string: