check for final end of line