diff --git a/IranSystemConvertor/ConvertTo.cs b/IranSystemConvertor/ConvertTo.cs index 376b31b..62868e2 100644 --- a/IranSystemConvertor/ConvertTo.cs +++ b/IranSystemConvertor/ConvertTo.cs @@ -294,7 +294,7 @@ static string IncludeNumbers(string convertedString) string number = Reverse(NumbersInTheString.Pop()); if(!string.IsNullOrWhiteSpace(number)) { - int index = convertedString.IndexOf("#"); + int index = convertedString.LastIndexOf("#"); convertedString = convertedString.Remove(index, 1); convertedString = convertedString.Insert(index, number);