Read while stream and put it in string
replace vars in the license