Move the string into an array then you can check any of the array elements.
Code:
SERIN2 PORTB.5,24972,[WAIT("A"),STR NUMS\16]
IF NUMS[0] = ??? then ...