Fixed whitespace bug

expand() wasn’t correctly ignoring whitespace between node descriptors.
Now it calls trim() on each spec segment before attempting to inflate
it.