better string handling of env