trim env variables and remove comments