String formatting and iterate in bunchfied way