I want to remove all leading and trailing whitespace from a string.
// String literal var s = " Hello World! " // Trim all whitespace s = s.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()) print(s)
* Please let us know about anything: issues/feature request/suggestions......And we'll do our best to get back to you asap! :)
Or just post your issue on iSwift's Official Issue Tracker