implementing dynamic string changes