Why dont you pad the string with the blank characters before and after depening on the position where you want to display the title
Code:
printTextScreen("      Title to display     ");
and change it with the spaces as the timer is triggered.