Use CfReadLine (getline) in function regline, chop Chop.

This removes line length limitations and space truncation in Chop.

Close #3434, #1569