using basic string for replace by preventing type deduction