add missing string coercion in print function