Avoid exception when StringBuild class cannot be found
converted anonymous inner type to inner class