repace spaces with underscores in custom fields