fix logic bug in StringBuilder first check
replace string concatenation in StringBuilder with chained append calls


git-svn-id: http://gforge.hl7.org/svn/fhir/trunk/build@3295 2f0db536-2c49-4257-a3fa-e771ed206c19