Changed condition in while loop in replace method to '>='. This solved the problem of text not being found if at the start of the string.
Authored by: kingsleyelmes 2007-10-16
Parent: [r1136]
Child: [r1138]