Fix bug building string