Fixed carriage return issue.
Need to fix regex for finding key and val