What is the purpose of a g string?

to avoid a pantyline and be practically naked after taking off your pants