Structs

The implementation of the standard replace function.