Removing white spaces in the middle of the string in ax 2012

Hi,

I need to remove the spaces in the string:

Eg:

str txt = " abc def ghi";

I need to remove the spaces in the string which are between ‘abc’ and ‘def’ and ‘ghi’ in the string txt.

Is there any standard method to move the spaces?

I have tried strltrim and strrtrim, they will remove the spaces in both the ends and they are not remove the spaces in the middle.

Please suggest me something that will help me.

Thanks in advance…

I tried strrem(txt," ");

It worked. Hope this my help the people who are new to ax…