The hangman code that I am referencing comes from the [*Invent Your Own Games with Python*](https://inventwithpython.com/invent4thed/chapter8.html) book:

In the function that displays the game board, there is a for loop that replaces a string composed of underscores with the correct, guessed letters corresponding to whatever the secretWord is: 

```
    for i in range(len(secretWord)):
        if secretWord[i] in correctLetters:
            blanks = blanks[:i] + secretWord[i] + blanks[i+1]

```

I have trouble trying to understand and visualize the line `blanks = blanks[:i] + secretWord[i] + blanks[i+1]`
Let's say `secretWord = "otter"` and `blanks = "_____"` (five underscores). How exactly would the for loop work?