shorten tokens method