raise error for non-stringtypes environment variable values