Added replace and extension methods.