Have a look at slice() - https://www.w3schools.com/jsref/jsref_slice_string.asp
I used it in this example -Reading String of Hex from T-zone RD05 problem
Have a look at slice() - https://www.w3schools.com/jsref/jsref_slice_string.asp
I used it in this example -Reading String of Hex from T-zone RD05 problem