How to trim spaces between the string?

str = "This is      online   tutorial     of                        QTP"

msgbox Replace(str," ","")

                    

Comments