Why not:

    val n = s"_$i"

?