Tjaart, In one of your messages you said: > A few of the messages may look like this : > > Door 1 is Closed > Door 2 is Open > Oven Temperature is 200dC > No Operator Present > Danger : Boiler May Explode The way I would go about handling these sort of text strings is to reduce each to its simplest form that still contains all the relevant information. For the examples given you could reduce the info down to a single tokenized value and a numeric section. The process would look something like this: Reset the numerical register(s) (set to 00 or 0xff). Reset the numeric pointer. Then enter loop that does checks: If Character is space, ignore (or use to create Hash Value). If Character is Numeric, store (and update numeric pointer). If Character is Alphabetic, use to create Hash Value. If Character is then PROCESS Loop until done. PROCESS Hash Value is then used to vector to appropriate routine. Routine can then extract any necessary numerical data from the numerical register(s) RETURN (or JUMP to main) Note that the Hashing routine can be somewhat simplified if only the first character (or first n characters) of a word are included in the Hash. You should always ensure that the Hash algorithm results in a one-to-one correspondence. Hope this helps. Fr. Tom McGahee