Created append and displayAlertWithString function. Compare alert works!