Ported statement.py (nothing tested).
Added more utils (from strings.py).