array_of_strings utility functions and main run_shell