Getting some errors trying to use this with Swift 2 For example let rem = input.characters.count % 4 // Characters is unavailable error defer { context.deallocate(capacity: 1) } // deallocate(capacity:)isunavailableerror