StringReplaceAll replaces all occurrences of OldPattern with NewPattern in S string.
OldPattern can be one or more characters.
NewPattern can be one or more characters, or it can be blank, which effectively removes all occurrences of OldPattern.
StringReplaceAll does not recognise case - A is read as the same as a.
Please also review StringReplaceFirst at StringReplaceFirst.
Declaration: Function StringReplaceAll( const S, OldPattern, NewPattern : string) : string;
Examples follow.