Do you want to re-arrange the blocks or just rename them? If you just want to rename them then use tlm's code. If you want to move the blocks around then it would be good to understand how these blocks are merged into one file. It makes more sense to merge them in the way you want than merging all and then moving them around.