Changed indentation, and fixed accidentally freed a sting before getting its length