Assuming 12345 is required, the following result was found.
Convert a string of characters to a list: v_MyString = "12345"; l_StringValues = v_MyString.replaceAll("(?)",",",false).removeFirstOccurence(",").removeLastOccurence(",").toList(); // yields list of [1,2,3,4,5] // NB:...