I\'ve got a problem with removing whitespaces at the beginning and end of string. For e.g. I\'ve got a string like:
\\r\\n\\t- Someone will come here?\\n- I d
String trimming first and last whitespaces and newlines in Swift 4+
" 2 space ".trimmingCharacters(in: .whitespacesAndNewlines)
result: "2 space"