Fix for #1784 (Whitespaces not removed from device name in updatedevices.pl