Multiline string maze