Added mid() function to allow centering text.