Convert line into tuples