how are you extracting the name from the battleground message?
i take it, you've inserted a print command to verify they are the same. i would add a string.length() for each as well just to ensure that there's not some escape code funny business going on.
yes it was the function to extract the name which had a problem -_-... I use string.len and there are 2 excess spaces...
so I have to format name from getbattlefieldscore() to have only the name, and then use string.match (because I can't remove the 2 excess spaces I don't know how)