On the Home Ribbon, select Find and Select.
Choose Replace.
Indicate you want to replace a space " " with a period "."
Select Options, Match Entire Cell Contents and Replace All