@blakeyrat said:
It will with the default PHP Replace() behavior. I know this because I ran across an extremely similar scenario in PHP just this weekend, which is also what prompted the little rant about PHP's lack of ReplaceOnce(). You didn't provide enough information to determine it's WTFicality.
Well I mentioned (in passing) that this was VB6, so we actually have 4x WTFicality: VB6 itself, using VB6 in the year 2010, the code doesn't work, and our developer didn't test it with more than 2 consecutive spaces. Pity me, I deal with stuff like this on a daily basis. Oh and TRWTF is that this guy isn't much better in .Net.