No need to unpack the string. Just split it and compare the character values.