Add toString method in LineInformation class.