Parses multi-lines input