Properly handle spaces for code node type.