making string changes and adding variables