Remove exec() from handle_user_input() function