how to specific string remove in swift 42 code example Example: swift remove space from string let freedSpaceString = str.filter {!$0.isWhitespace}