Listing 6.10 error

Typing listing 6.10 into the REPL console gives me the following error:
error: unresolved reference: input

Should input be replaced with finalBoss?

Yes — You’re exactly right. Thanks for calling this out! The correct code, in its entirety, should be:

val finalBoss = "Nogartse"
println(finalBoss)
val replaced = finalBoss.replace("Nogartse", "********")
println(finalBoss)
println(replaced)