Single and multi-line parsing functionality