bugfix: allow stray spaces at the end of network definitions.