renamed "getStringWidthInternal" to "getStringWidth"