convert to spaces and fix ad spacing