added line stripping

line is now stripped, removing empty characters at the beginning and end of the line.