return string char array that is printed to console