Parser for strings with sections
Refactor