add null check for CFStringCreateWithCString