adding string substitution solution