replace() method should be static