Replace spaces in names with underscores