Not sure this replace is ok, it seems to replace all the chars from the value. I think it should be reviewed