`capitalize`: replace C++11 `lambda`-expression by regular `for`-loop again