make_pathname function

Replace spaces in strings with underscores