If we happen to have multiple variables in the string we are handling,
we must continue handling the string always at the end of the previous
replaced variable. Otherwise we may end up skipping the beginning of
the next variable.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>