Fixed a bug in RemoveDigits