Use String#lines to detect multiple lines