convert all whitespace characters to spaces