fix whitespace bug on xyz splitting