added line stripping

line is now stripped, removing empty characters at the beginning and end of the line.
Merge pull request #1 from sdf010/patch-1

added line stripping