Added function to format the mode line text