Re-formatting of rules string to display on screen.