Final working version

str_replace so that the input values appear correctly