implement dollar sign char replacement for enviromental variables