Continue formatting data until correct information prints out