Good Model predicting alphanumeric pattern based on several input alphanumeric values

Hello all

Can someone recommend model /approach to Predict Alphanumeric pattern based on several Alphanumeric inputs

In the example below Result is the prediction it basically is the last 16 characters from input1. It could vary in other examples

Want to predict the result( data in column labeled Result) based on input1 input2 , input3 and input4.

for example ( space separate values below). Result is the prediction notice it is a subset of the input1 . The RESULT could be other things as well ( perhaps subset of input 2 + subset of input1)

Input1 = 50K:/a1234567830923456
Input2 = TNREF:123456783123457
input 3 =FX:GBP

RESULT a1234567830923450

More example below ( space separated)
input1 input2 input3 input4 Result

50K:/1234567830923456 TNREF:123456783123457 FX:GBP 100.00 1.23456 BNF:JOHN DOE3092345678309234567830 1234567830923450

:50K:/2234567830923456 TNREF:123456783123457 FX:GBP 100.00 1.23456 BNF:JOHN DOE3092345678309234567830 2234567830923450 :50K:/3234567830923456 TNREF:123456783123457 FX:GBP 100.00 1.23456 BNF:JOHN DOE3092345678309234567830 3234567830923450 :50K:/4234567830923456 TNREF:123456783123457 FX:GBP 100.00 1.23456 BNF:JOHN DOE3092345678309234567830 4234567830923450 :50K:/5234567830923456 TNREF:123456783123457 FX:GBP 100.00 1.23456 BNF:JOHN DOE3092345678309234567830 5234567830923450 :50K:/6234567830923456 TNREF:123456783123457 FX:GBP 100.00 1.23456 BNF:JOHN DOE3092345678309234567830 6234567830923450 :50K:/7234567830923456 TNREF:123456783123457 FX:GBP 100.00 1.23456 BNF:JOHN DOE3092345678309234567830 7234567830923450 :50K:/8234567830923456 TNREF:123456783123457 FX:GBP 100.00 1.23456 BNF:JOHN DOE3092345678309234567830 8234567830923450 :50K:/1034567830923456 TNREF:123456783123457 FX:GBP 100.00 1.23456 BNF:JOHN DOE3092345678309234567830 1034567830923450