I fixed the issue.
If you look closely you can see that when I break the int point back into a string. It puts the number as 2,560 and not 2560. I assume this is because the conversion from int to string account for the ‘,’ after thousands etc. My solution was simply to change the string comparison to include the ‘,’