This is a programming language, not math.
First you might want to do a count to see how many places there are that you should do a replace on:
replace("foo", "", "bar");
Result: "fbarobaro"
Which of course should have been:
replace("foo", "", "bar");
Result: "barfbarobarobar"
Why? Well, just because returning "counting empty string in other string" error, isn't that useful and it makes program harder to write if you always have to check the string and see if it is "".
/ Hedda (Hemma igen)
Previous text:
2003-04-29 02:17: Subject: Strange?
From a mathematical point of view that argument is rediculus. It is plain obvious that there can be an infinite amount of empty strings between two whitespaces.
/ Peter Lundqvist (disjunkt)