_extractSectionName s = if last s == ']' then take (length s - 1) s
                        else error "Invalid, unterminated section line (missing ])."
_extractSectionName s = if last s == ']' then take (length s - 1) s
                        else error "Invalid, unterminated section line (missing ])."
_extractSectionName s = if last s == ']' then take (length s - 1) s
                        else error "Invalid, unterminated section line (missing ])."