Say one has string input in the form below:
{ 'OTH', 'REJ', 'RSTO', 'RSTOS0', 'RSTR', 'S0', 'S1', 'S2', 'S3', 'SF', 'SH' }
What would be an efficient way to convert it to an array of Strings with each element being OTH, REJ, etc.?
I've currently done this using String.replace() and String.split() and have also considered the use of regex-s for the same, but was wondering whether there was a more easier/intuitive way of doing so.