in reply to while loop on binary : \x30

beech - thanks. Corion at the top suggested the same but the penny didn't drop with me until I saw your implementation.
So "while" is possible.