Hi Jenifer,
You can use X++ String runtime function to avoid it.
docs.microsoft.com/.../xpp-string-run-time-functions
if (decimals == 0.00)
{
word = strdel(strpoke(word, strfmt(' %1 and No %2', _currency1, _currency2), repPos), 1, 4);
}
else
{
decWord = substr(num2str(decimals, 0, 2, 1, 1), 3, 2);
decWord = Global::numeralsToTxt_EN(str2num(decWord));
repPos1 = strscan(decWord, ' and', 1, strlen(decWord));
decWord = strpoke(decWord, strfmt(' %1', _currency2), repPos1);
decWord = strdel(decWord, 1, 4);
word = strdel(strpoke(word, strFmt(' %1 and %2', _currency1, decWord), repPos), 1, 4);
word = strdel(word, strscan(word, '/100', 1, strlen(word)), 4);
}