Working with strings

Thank you, although the reason I was using a queue is to determine if the letter is first in the co-ordinate or the number so I can move accordingly in the grid, the code you posted will work but if a number is before the letter there will be no way of knowing that and it will make it quite difficult to know what action to take for the movement. Is there any way to rectify that ?

Although if I translate the letter from pos from setMoves to 5-9 instead of 0-4 I think I can know where to move. Could you tell me how to do that ?

p.s.- Sorry arduino coding is quite new to me and am still learning.