common library for substituting ENV into string. Will be used to replace path pattern.