guard against empty strings in env variables