Fix string length calculation
Free everything
Change aq union to val