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
let string = " exam ple "
let trimmed = string.replacingOccurrences(of: "(^\s+)|(\s+)$", with: "", options: .regularExpression)
print(">" + trimmed3 + "<")
// prints >exam ple<