cleaned up duplicate 'splitTextFraction' function