change nil open spaces to ' '