saving string analysis exercise