convert string to NSNumber and NSData