Converted result of the add function to an NSString and passed it into the displayAlertWithString function.