[Credit: anubhav-chattoraj] Iterate according to length of string