Truncate device names longer than 30 characters when setting the sheetTitle.

Fixed #521