Home replacingOccurrences not working on Device
 I made a trimming whitespace code to remove whitespace in the textfield input, but here is a problem, on the emulator it works fine and removes whitespace but on the device, it won't work at all here is my code: var number = numberTxtField.text if number!.hasPrefix("+98") { let start = number!.index(number!.startIndex, offsetBy: 0); let end = number!.index(number!.startIndex, offsetBy: 3); number!.replaceSubrange(start..