SyntaxFix
Write A Post
Hire A Developer
Questions
The easiest way to trim the last character of the string is:
title = title[title.startIndex ..< title.endIndex.advancedBy(-1)]