updated to remove the ^M characters.