When I test a display I write or use an example of a program that just tests the display and nothing else. Once I know that there are no issues with the display I start making the real program.
Can you be sure that your additional code is not causing your issue?
I have no idea what that code is supposed to mean!
The characters you see are the result of attempting to display on the LCD, a character value less than 0x20, that is to say a control character. This is usually due to using the non-functional "lcd.println()" but you do not appear to be making this error. I suspect you are displaying a NUL, but it could be some other value less than 0x20.
The bit of code is suposed to take some data from my esp8266 and if it has a hearth emoji it will remove it form the data, and it will just keep the rest of the data and print it and in the photo in serial monitor i was getting test test and then this wierd simbol keeps coming up.