added comment and allow inherit styling for default text replace