Added whitespace trimming for TabletFactory.build()