convert spaces (4 to 2)