Shorten digits function.