Shorten device token string.