Remove extra whitespace around node ID (fixes #335)