Weird string conversion issue

Welcome to the forum

Please post it here, using code tags when you do

Many members are reluctant to visit other sites to download code when you could make it much easier to examine if you follow the advice regarding posting code

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use [color = red]code tags[/color] (the </> icon above the compose window) to make it easier to read and copy for examination