Fix string generation in statements.