Refactore multiline to support multiple chunk