This is not possible currently. As of now Unifier doesn't support any string operation other than concatenation. It is an ER. To inform your user about this restriction, you can use form field tooltip. Alternately, if it is fixed set of code you could use string pull down type data element.