Implementing looping of letters