add a function to print string on the screen