Save the replace function as a static on the Color class so we don't create a new function everytime.