Working with strings

So basically I want a queue of struct which contains the following:

struct t{
//pair of co-ordinates like - (A,1)
//or if the string has number first instead of letter the like - (1,A)
//then there is t, which if t isn't mentioned doesn't matter but if t is mentioned then it should read the number after t like [120] and stuff until it either finds a space or newline or it finds a letter.
}

So basically, Read the string, preprocess it like I said above, then get them into a struct and make a queue of struct. So my end goal is I can get from queue value like: [A][1] or [c][2] and then compare these values like compare letter to letter that is A to c and 1 to 2 and subtract them to get 2 from A,c and 1 from 2,1.

So like if I get a string like- A1N 2b
then it should compare A to b and 1 to 2 and get values 1 and 1.

The code you posted will have it is giving me error in arduino ide

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

C:\Users\seric\Desktop\New folder (2)\MovementsWithSimpleFunctions\projectcoderobot\projectcoderobot.ino: In function 'void loop()':

projectcoderobot:110:40: error: cannot convert 'String' to 'char*' for argument '1' to 'int tokenize(char*, char**, int)'

 int n = tokenize (str, tok, MAX_TOK);

                                    ^