added configuration for replace pattern