Added helper function to set env vars
Combine functionality for generating random strings
Better set_env_var function