Parsing strings in teal local state

I have saved a string in local state, which represents several distinct values, e.g.
“abc123|5010” where “|” is the delimiter and the 2 fields are variable in length.

I’d prefer to save the embedded values in a more structured way (e.g. as an Object) via app_local_put as usual, but failing that what would be best practice to extract (in Teal) those 2 values above, after doing the app_local_get ?

I would strongly recommend to store the values following the ABI conventions that have been designed for easy serialization/deserialization: