Added support for shifting digits left and right