replace space with _ in variable names, then clean up some splits() related to that