Let split() handle whitespace, report '0' when device is not defined.