Removing (Almost) duplicate String

I have two Strings being sent that are close to each other but not exactly the same. Along with several other Strings.... (this is multiple transmitters and multiple receivers with NRF24L01's all using networking nodes). I found a possible issue if two teams are sending the same (ish) data at the same time (or within the same refresh time). These strings are displayed on a Nokia 5110 screen and I don't have that much space to be wasting on pretty much the same set of instructions from a different team.

example:
"Red Team 123 ZYX"
"Red Team 123 XYZ"
"Blue Team ASDF"
"Green Team QQQ"
"Not Green Team 8008135"

Is there a way I can either remove or override one of the "Red Team" strings so only one of them is saved and printed? I'm thinking of pulling just the first 8 bits of data from the String and if they are == then discard the second... But I'm lost

There may be a more efficient way than comparing the strings. Show your code

Nm, I figured it out.
I'm having masters queued to send the data and then they all send the data in two packets. An ID string and a Data string. if two ID strings ==, then the second data is not printed. It's been running for 4 hours now with no issues, seems stable.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.