Swift: B4 requires an explicit cast to NSString for substringFromIndex and substringToIndex