Added a Middle method to the string factory.