On digit swaps and shifts