program to print a string