How to change the text dynamically

Can you change the text with a hardcoded value and say if it is displayed properly:

My thought is either 1stPlaceTxt variable is not set properly or something overrides it after DisplayScore is called.