Simplify some do-while-loops

* do str++; while (something(*str)); can be contracted to
  while (something(*++str));, so do it.

Signed-off-by: Max Reitz <xanclic@niwohlos.org>