How to identify string elements, Real or string inside a string element

!a is string in below element, if query object type all elements are appearing as string, because !a is a string.

i agree for this

!a = '122E1A1'
!s1 = !a.length()
do !i from 1 to !s1
!c = !a.substring(!i,1)
!t = !c.objecttype()
q var !t
q var !c
enddo

Is there any method exists in pml to find exact type.

!a = '122E1A1' Like below

1 REAL

2 REAL

2 REAL

E STRING

1 REAL

A STRING

1 REAL