revert names with spaces