add dict and $ in string