basic scanner extension for multi-line strings