All the points you mentioned are the ones I found but didn't post an hour before because of my provider at home sometimes doesn't like korg (well, it is sometimes a general pig) \:\)

The problem with test case 5 is that readprofilestring(), or the underlying API, strips trailing spaces that are not inside quotes...

Having said all this and ammended the ini file to reflect the changes my new result is....
_________________________