changed default replace text
use default if sample is empty