Add percent values to //set and //replace

How about wrapping this entire thing in a separate object - pass in the input string, the object remembers it and then can be used to query a block type repeatedly, based on the percentages.