You need to lay out some type of rules for this data ie. some consistent ordering, or prefix each data item with an identifier POWER-powervalue CLASS-theclass. A computer can only do what you tell it to do, there's no magic way for it to know what you're trying to accomplish.
Looking at your second example, are the types of arguments dynamic, or only the data items belonging to each type dynamic?
If you wanted to do like "100 1 55 AWP GLOCK HEGRENADE" (100=power, 1=class, 55=ability, then a list of weapons) then this is simple.
Give some real-life example datas so we can better understand what needs to be parsed.