TextMeshPro input field returning different string to standard input string

I have a standard input field and a text mesh pro input field, and its been having some weird behaviour so I tested the two fields for equality using the following code. In all cases, even when the exact same text is typed into both fields it tests are not equal.

if(backupNameField.text == gameNameField.text)
{
Debug.Log(“Same!”);
}
else
{
Debug.Log("Different! " + backupNameField.text + " " + gameNameField.text);
}

I’m Having the same issue, Did you manage to fix this?

when i try to see the contents from the input field it just says Object which could be why as its not a string? but i’m pretty new to debugging in unity.