fixed build-string bug