fix string building