fix logic of concat strings