Well just search for scores in the Sring. So basicly check for String[0] if it is number, if so check if String[1] is also a number. and then you just add up all the numbers giving you back your score.
The easier way would be if you’d always enter something like aaa121340bbb while 121340 is your score and the aaa just indicate that your score starts there. And the bbb indicates that the score ends there. So you just need search where a aaa is and then take all the characters between the aaa and the first bbb which comes later on. Take those characters in a separate String and then you can convert that string to an int.
If you do so you should always keep in mind that hackers might find out about that technique so you might want to forbid the player to use aaa and bbb in their username
that’s the easiest solution I see.
Otherwise you could just modify the php script on the server side but I can’t help you out with that