Remove libconfig

This could be inline function. It's small and it works on provided string.

Either make it inline, or make str a reference and don't return anything.