convert to space, cleanup formatting