new method for persian_digit function