added a function to display a text without an ending new line