string.Replace

BlitzMax Forums/BlitzMax Programming/string.Replace

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

String replace is not giving results as expected. I want to result every two spaces " " -> " ". As you can see there are left some doublespaces.
Print "test1 test2 test3 ".Replace$(" "," ")

That should print "test1 test2 test3" but it doesnt.