string: improve string inspection